< previous page page_473 next page >

Page 473
Summary
Restricting user input in text boxes is as simple as adding a little bit of code to the KeyPress event or using the Validate() event. Values changing in a combo box can cause you problems if youre not aware that the Click event fires every time a combo box is clicked. The DataFormat property helps you apply formatting to values coming from a data control that will be placed in text box controls.
Review Questions
1. Which event do you use to restrict user input in text boxes?
2. Which function do you use to force uppercase letters?
3. Whats the problem with the LostFocus() event?
4. What does the CausesValidation property do?
5. Which function do you use to display a currency value?
6. Which function do you use to display a date value?

 
< previous page page_473 next page >

If you like this book, buy it!